package com.fanco.learn_datastruct_leetcode.designpattern.visitor.demo2;

/**
 * @author qiaowang 2022/2/21
 * 描述
 */
public class Client {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.attach(new Mouse());
        computer.attach(new Monitor());
        computer.attach(new Keyboard());
        computer.accept(new ComputerDisplayVisitor());
    }
}
